home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / sticpsrc.lzh / SOURCE.ARC / CMDPARSE.H < prev    next >
C/C++ Source or Header  |  1989-03-05  |  457b  |  14 lines

  1. #define NARG        20    /* Max number of args to commands */
  2. #define POOLSIZE    200    /* Max number of chars in expanded args */
  3.  
  4. struct cmds {
  5.     char *name;        /* Name of command */
  6.     int (*func)();        /* Function to execute command */
  7.     int  argcmin;        /* Minimum number of args */
  8.     char *argc_errmsg;    /* Message to print if insufficient args */
  9.     char *exec_errmsg;    /* Message to print if function fails */
  10. };
  11. #ifndef NULLCHAR
  12. #define NULLCHAR    (char *)0
  13. #endif
  14.